<#include "/admin_common/_layout.html" />








<@layout>




  <!-- content start -->
  <div class="admin-content">

    <div class="am-cf am-padding">
      <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">分类列表</strong> / <small>Category list</small></div>
    </div>

    <div class="am-g">
      <div class="am-u-sm-12 am-u-md-6">
        <div class="am-btn-toolbar">
          <div class="am-btn-group am-btn-group-xs">
            <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> <a href="/admin/form/" style="color:black">新增文章</a></button>
            <button type="button" class="am-btn am-btn-default"><span class="am-icon-plus"></span> <a href="/admin/addclass/" style="color:black">新增类别</a></button>
            <button type="button" class="am-btn am-btn-default" style="display:none"><span class="am-icon-save"></span> 保存</button>
            <button type="button" class="am-btn am-btn-default" style="display:none"><span class="am-icon-archive"></span> 审核</button>
            <button type="button" class="am-btn am-btn-default" style="display:none"><span class="am-icon-trash-o"></span> 删除</button>
          </div>
        </div>
      </div>
      <div class="am-u-sm-12 am-u-md-3" style="display:none">
        <div class="am-form-group">
          <select data-am-selected="{btnSize: 'sm'}">
            <option value="option1">所有类别</option>
            <option value="option2">IT业界</option>
            <option value="option3">数码产品</option>
            <option value="option3">笔记本电脑</option>
            <option value="option3">平板电脑</option>
            <option value="option3">只能手机</option>
            <option value="option3">超极本</option>
          </select>
        </div>
      </div>
      <div class="am-u-sm-12 am-u-md-3" style="display:none">
        <div class="am-input-group am-input-group-sm">
          <input type="text" class="am-form-field">
          <span class="am-input-group-btn">
            <button class="am-btn am-btn-default" type="button">搜索</button>
          </span>
        </div>
      </div>
    </div>

    <div class="am-g">
      <div class="am-u-sm-12">
        <form class="am-form">
          <table class="am-table am-table-striped am-table-hover table-main">
            <thead>
              <tr>
                <th class="table-check" ><input type="checkbox" style="display:none"/></th>
                <th class="table-id">ID</th>
                <th class="table-title">标题</th>
                <th class="table-set">操作</th>
              </tr>
          </thead>
          <tbody>
          
          
          
          <#list blogPage.getList() as x>
            <tr>
              <td ><input type="checkbox" style="display:none"/></td>
              <td>${x.id}</td>
              <td><a href="#">${x.name}</a></td>                
              <td>
                <div class="am-btn-toolbar">
                  <div class="am-btn-group am-btn-group-xs">
                    <button class="am-btn am-btn-default am-btn-xs am-text-secondary"><span class="am-icon-pencil-square-o"></span> <a href="/admin/editcategory/${x.id}">编辑</a></button>
                    <button class="am-btn am-btn-default am-btn-xs am-text-danger am-hide-sm-only"><span class="am-icon-trash-o"></span> <a href="/admin/deletecategory/${x.id}" style="color:#dd514c">删除</a></button>
                  </div>
                </div>
              </td>
            </tr>
            </#list>
            
            
            
            
           
            
            
          </tbody>
        </table>




	<#include "/admin_common/_paginate.html" />
	<@paginate currentPage=blogPage.pageNumber totalPage=blogPage.totalPage actionUrl="/admin/classlist/" />








          <hr />
          <p style="display:none">注：分类列表</p>
        </form>
      </div>

    </div>
  </div>
  <!-- content end -->
</div>

<a href="#" class="am-icon-btn am-icon-th-list am-show-sm-only admin-menu" data-am-offcanvas="{target: '#admin-offcanvas'}"></a>

<footer>
  <hr>
  <p class="am-padding-left">© 2014 AllMobilize, Inc. Licensed under MIT license.</p>
</footer>

<!--[if lt IE 9]>
<script src="http://libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="/js/amazeui.ie8polyfill.min.js"></script>
<![endif]-->

<!--[if (gte IE 9)|!(IE)]><!-->
<script src="/js/jquery.min.js"></script>
<!--<![endif]-->
<script src="/js/amazeui.min.js"></script>
<script src="/js/app.js"></script>
</body>
</html>


</@layout>
